Class Configuration#getLocaleList

Configuration

Class Summary
Constructor Attributes Constructor Name and Description
 
Configuration#getLocaleList(successCallback, errorCallback)
Gets the supported locale item list with an item (specifier, language name, country name).

Class Detail

Configuration#getLocaleList(successCallback, errorCallback)
Gets the supported locale item list with an item (specifier, language name, country name). Locale specifier is composed of {language code}-{country code} and it is worked as the identifier when setting language.
// Javascript code
function getLocaleList () {
  function successCb(cbObject) {
     console.log("cbObject : " + JSON.stringify(cbObject));
		var localeList = cbObject.localeList;
     console.log("localeList : " + JSON.stringify(localeList));

     // Do something
  }

  function failureCb(cbObject) {
     var errorCode = cbObject.errorCode;
     var errorText = cbObject.errorText;
     console.log ("Error Code [" + errorCode + "]: " + errorText);
  }

  var configuration = new Configuration();
  configuration.getLocaleList(successCb, failureCb);
}
Parameters:
{Function} successCallback
success callback function.
{Function} errorCallback
failure callback function.
Since:
1.4
Returns:
{Object}
PropertyTypeDescription
localeListArraylocale list
localeList.languageStringlanguage name
localeList.languageCodeStringlanguage code
localeList.countriesArraycountry list
localeList.countries.nameStringcountry name
localeList.countries.spercifierStringlocale specifier ({language code}-{country code} such as "en-GB" and "ko-KR")
See:
Configuration.setOSDLock()